package com.jic.purchase.service;

import java.lang.Long;
import java.util.List;

import com.jic.purchase.model.entity.SupplierRangeProduct;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.Page;
import com.jic.purchase.model.vo.request.RangeProductRequest;
import com.jic.purchase.model.vo.request.SupplierRangeProductRequest;
import com.jic.purchase.model.vo.response.SupplierRangeProductResponse;

/**
* 供应商范围商品
* @author : 
* @email : 
* @since : 2020-09-20 06:58:04
* @version : v1.0.0
*/
public interface SupplierRangeProductService {

    long insert(SupplierRangeProduct supplierRangeProduct);

    long delete(Long id);

    long update(SupplierRangeProduct supplierRangeProduct);

    SupplierRangeProduct queryByPrimaryKey(Long id);

    List<SupplierRangeProduct> query(SupplierRangeProduct supplierRangeProduct);

    PageResult<SupplierRangeProduct> queryPage(SupplierRangeProduct supplierRangeProduct, Page pageQuery);

    /**
    * @Autor: zhaowei
    * @Date: 2020/9/20 21:22
    * @Description: 分页查询
    */
    PageResult<SupplierRangeProductResponse> querySupplierRangeProductList(SupplierRangeProductRequest request);

    /**
    * @Autor: zhaowei
    * @Date: 2020/9/20 21:22
    * @Description:批量保存
    * @Param:
    * @Return:
    * @Exception:
    */
    Boolean batchInsert(RangeProductRequest request);
}